import {mCommit, mGet, mRemove} from '@/utils/auth'

const storage = {
    set(key, value) {
    //   if (process.client) {
    //     window.sessionStorage.setItem(key, value);
    //   }
      mCommit(key,value)
    },
  
    get(key) {
    //   if (process.client) {
    //     return window.sessionStorage.getItem(key);
    //   }else return null;
      return mGet(key);
    },
  
    remove(key) {
    //   if (process.client) {
    //     window.sessionStorage.removeItem(key);
    //   }
      mRemove(key)
    },
  };
  
  export default storage;
  